import {createRouter, createWebHashHistory, Router} from 'vue-router'
import {autoloadRoute} from './autoloadRoute'
import routes from './routes'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [...autoloadRoute(), ...routes],
}) as Router

export default router
